package com.dingyx.ps.model.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @description 商品
 * @author zhangyang@zencor.cn
 * @date 2021-03-09
 */
@Data
@ApiModel
public class GoodsListPO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty("记录主键")
    private Integer goodsId;

    /**
     * 领取规则-领取次数
     */
    @ApiModelProperty("领取规则-领取次数")
    private Integer ruleClaimTimes;
    /**
     * 领取规则生效时间
     */
    @ApiModelProperty("领取规则生效时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime ruleClaimDate;
    /**
     * 领取规则是否生效（0是1否）
     */
    @ApiModelProperty("领取规则是否生效（0是1否）")
    private Integer ruleClaimEnable;

}

